Java Program to find the reverse of a given number